var schedule = require('node-schedule');
var winston = require('winston');
var moment = require('moment');

var logger = new (winston.Logger)(
		{
			transports : [ new (winston.transports.Console)(
					{
						timestamp : function() {
							return moment().format();
						},
						formatter : function(options) {
							// Return string will be passed to logger.
							return options.timestamp()
									+ ' '
									+ options.level.toUpperCase()
									+ ' '
									+ (undefined !== options.message ? options.message
											: '')
									+ (options.meta
											&& Object.keys(options.meta).length ? '\n\t'
											+ JSON.stringify(options.meta)
											: '');
						}
					}) ]
		});

var j = schedule.scheduleJob('15 * * * * *', function() {
	logger.info("hellow world logging test here for str:%s", "testStr.");
});